<?php
	class IMDB_Page_TVSeries extends IMDB_Page {

		protected function parse($sInput) {
			// Need help on making a regular expressiong replace
			// <a class="tn15more" href="[XXXX]">more</a>
			// with nothing.
			// -- subwar
			// P.s. I'm tired and i'm going to sleep early D: l8r
			$Replacer = "/<script\b[^>]*>(.*?)<\/script>/i";
			// <a class="tn15more" href="fullcredits#writers">more</a>
			//$NoMores = "/<a class=\"tn15more\" href=\"(.*?)\">more</a>/";
			$sInput = preg_replace($NoMores, "", $sInput);
			$sInput = preg_replace($Replacer, "", $sInput);
			$sInput = strip_tags($sInput);
			$RemoveCSS = substr($sInput, stripos($sInput, ".media_strip_thumbs img"), stripos($sInput, "color:#333333") - stripos($sInput, ".media_strip_thumbs img") + 16);
			$sInput = str_replace($RemoveCSS, "", $sInput);
			$RemoveInlineJS = substr($sInput, stripos($sInput, "var k ="), 250);
			$sInput = str_replace($RemoveInlineJS, "", $sInput);
			echo $sInput;
			$Lines = explode("\n",strip_tags($sInput));
			$this->_aPageResults = $Lines;
		}
	}
?>